package com.zf.yichat.service;

import com.zf.yichat.dto.StTicketDto;
import com.zf.yichat.model.StUserTicket;
import com.zf.yichat.utils.response.FsResponse;

import java.util.List;

public interface TicketsService {

    /**
     * 注册赠送用户门票
     * @param userId
     * @return
     */
    int giveUserTickets(Long userId);

    /**
     * 查询用户门票列表
     * @param userId
     * @return
     */
    List<StUserTicket> queryUserTickets(Long userId, Integer status);

    /**
     * 激活门票
     * @param ticketCode
     * @return
     */
    FsResponse activateUserTickets(Long adminUserId, String ticketCode, Long userId);

    /**
     * 用户扫描官方邀请码赠送门票
     * @param userId
     * @param ticketCode
     * @return
     */
    FsResponse officialInvitationTickets(Long userId, String ticketCode);

    /**
     * 查询指定官方码扫码详情
     * @param ticketCode
     * @return
     */
    List<StTicketDto> queryUserScanCode(String ticketCode);
}
